package bpmn.structure;


import java.util.ArrayList;

// TODO: Collapse with ParallelGateway
public class ExclusiveGateway extends ProcessElem
{
    {
        type = BPMNElemType.ExclusiveGateway;
    }

    public ExclusiveGateway(String id)
    {
        super(id);
    }

    public void addRef(String ref, boolean isIncoming)
    {
        if (isIncoming)
            incomingRefs.add(ref);
        else
            outgoingRefs.add(ref);
    }
//    @Override
//    public BPMNElement getParseElement()
//    {
//        BPMNElement e = new BPMNElement(BPMNType.ExclusiveGateway);
//        e.setId(id).setName(name);
//        return e;
//    }
}